//  main.m
//  TemplateSDKDemo
//
//  Created by Antony on 8/31/15.
//  Copyright © 2015 EF. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"

int main(int argc, char * argv[]) {
    @autoreleasepool {
        //        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        //        NSString *logDirectory = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"Log"];
        //        
        //        NSFileManager *fileManager = [NSFileManager defaultManager];
        //        BOOL fileExists = [fileManager fileExistsAtPath:logDirectory];
        //        if (!fileExists) {
        //            [fileManager createDirectoryAtPath:logDirectory  withIntermediateDirectories:YES attributes:nil error:nil];
        //        }
        //        
        //        NSString *logFilePath = [logDirectory stringByAppendingFormat:@"/%@.log",@"log"];
        //        [fileManager removeItemAtPath:logFilePath error:nil];
        //        
        //        // 将log输入到文件
        //        freopen([logFilePath cStringUsingEncoding:NSASCIIStringEncoding], "a+", stdout);
        //        freopen([logFilePath cStringUsingEncoding:NSASCIIStringEncoding], "a+", stderr);
        
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
